#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
  int a[10] = {0, 1, 2, 3, 6, 5, 4, 7, 8, 9};
  vector<int> v1(a, a + 10);
  cout << "Original vector"
       << "\t";
  for (int i = 0; i < 10; i++) {
    cout << v1[i] << " ";
  }
  cout << endl;
  cout << "After the change"
       << " ";
  for (int i = 0; i < 10; i++) {
    int j = ((v1[i] % 2) ? i * 2 : i); //条件表达式的使用
    cout << j << " ";
  }
  return 0;
}